{% extends "base.html" %}

{% block main %}

{% for article in latest_articles %}
<span> {{article.id}} -> <a href="/forum/article?id={{article.id}}">{{article.title}}</a>
<a href="/forum/articles_of_board?boardid={{article.boardid}}">boardArticles</a></span><br>
{% endfor %}

<div class="pagination">
    <span class="step-links">
        {% if latest_articles.has_previous %}
        <a href="?page={{ latest_articles.previous_page_number }}">previous</a>
        {% endif %}

        <span class="current">
            Page {{ latest_articles.number }} of {{ latest_articles.paginator.num_pages }}.
        </span>

        {% if latest_articles.has_next %}
        <a href="?page={{ latest_articles.next_page_number }}">next</a>
        {% endif %}
    </span>
</div>

{% endblock %}
